
export const imgerror = {
    inserted (el,options) {
        el.src = el.src || options.value
        el.onerror = function () {
            el.src = options.value
        }
    },
    componentUpdated (el, options) {
        // 该钩子会在当前指令作用的组件， 更新数据完毕之后执行
        el.src=el.src||options.value
      }
}